import service from '@/utils/request'

export const usePatientRecordApi = (id: Number) => {
	return service.get('/sys/patientrecord/' + id)
}

export const usePatientRecordSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sys/patientrecord', dataForm)
	} else {
		return service.post('/sys/patientrecord/save', dataForm)
	}
}

export const usePatientRecordListApi = (dataForm: any) => {
	return service.post('/sys/patientrecord/list', dataForm)
}
export const useListApi = (dataForm: any) => {
	return service.post('/sys/patientrecord/userlist', dataForm)
}
